package com.bo;

public class OrderBy {
	/**
	 * 
	 */
	String property;
	/**
	 * 
	 */
	String order;
	
	/**
	 * 
	 * @param property
	 * @param order
	 */
	public OrderBy(String property,String order){
		this.property = property;
		this.order = order;
	}
	
	/**
	 * 
	 * @return
	 */
	public String toSQL(){
		StringBuffer buffer = new StringBuffer();
		buffer.append(this.property).append(" ").append(this.order);
		return buffer.toString();
	}

	/**
	 * Returns the {@link #property}.
	 * @return the property.
	 */
	public String getProperty() {
		return property;
	}

	/**
	 * Returns the {@link #order}.
	 * @return the order.
	 */
	public String getOrder() {
		return order;
	}
}